# 1.获取包名和入口activity : 在sdk的build-tools下面执行如下命令
r" F:\androindSDk\sdk\build-tools\28.0.3> .\aapt.exe dump badging D:\chrome_dolwon\chelaile_app_chelaile_www_lastest.apk"
# 包名："package: name='com.ygkj.chelaile.standard' versionCode='119' versionName='3.62.0'"
# 入口："launchable-activity: name='dev.xesam.chelaile.app.module.func.SplashActivity'"
import requests

from database.db_connect import DB

add_d = []
url = "http://dl3.izhaohu.com:8888/app/icare/motion/stats"
iCareTagJson = "{'tagList':['006808'],'date':'2019-05-10'}"
datas = {"iCareTagJson": iCareTagJson}
r = requests.post(url=url, data=datas)
a = r.json()['motionStatsMap']
for i in a.values():
    for j in i:
        add_d.append(j['duration'])
a = DB()
for i in a:
    if i in add_d:
        print('a')
        break
    else:
        print('b')
        break
